﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Checking.aspx.cs" Inherits="XHCTMS.VIEW.Checking" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" href="css/style.css?v=2" />
    <!-- fluid 960 -->
    <link rel="stylesheet" type="text/css" href="css/text.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="css/layout.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="css/grid.css" media="screen" />
    <!-- superfish menu -->
    <link rel="stylesheet" type="text/css" href="css/superfish.css" media="screen" />
    <!-- tags css -->
    <link rel="stylesheet" href="css/jquery.tagsinput.css" />
    <!-- treeview css -->
    <link rel="stylesheet" href="css/jquery.treeview.css" />
    <!-- dataTable css -->
    <link rel="stylesheet" href="css/demo_table_jui.css" />
    <!-- fluid GS -->
    <link rel="stylesheet" type="text/css" href="css/fluid.gs.css" media="screen" />
    <!--[if lt IE 8 ]>
	<link rel="stylesheet" type="text/css" href="css/fluid.gs.lt_ie8.css" media="screen" />
	<![endif]-->
    <!-- //jqueryUI css -->
    <link type="text/css" href="css/custom-theme/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
    <!-- //jquery -->
    <!-- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> -->
    <script src="js/libs/jquery-1.5.1.min.js"></script>
    <script>        !window.jQuery && document.write(unescape('%3Cscript src="js/libs/jquery-1.5.1.min.js"%3E%3C/script%3E'))</script>
    <!-- //jqueryUI -->
    <script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script>
    <script type="text/javascript" src="js/jquery-fluid16.js"></script>
    <script src="js/plugins.js"></script>
    <script src="js/script.js"></script>
    <!-- //xoxco tags plugin https://github.com/xoxco/jQuery-Tags-Input -->
    <script src="js/jquery.tagsinput.min.js"></script>
    <link rel="stylesheet" href="css/jquery.tagsinput.css">
    <!--[if lt IE 7 ]>
	<script src="js/libs/dd_belatedpng.js"></script>
	<script> DD_belatedPNG.fix('img, .png_bg');</script>
	<![endif]-->
    <!-- modernizr -->
    <script src="js/libs/modernizr-1.7.min.js"></script>
    <!-- superfish menu and needed js for menu -->
    <script src="js/superfish.js"></script>
    <script src="js/supersubs.js"></script>
    <script src="js/hoverIntent.js"></script>
    <!-- treeview -->
    <script src="js/jquery.treeview.js"></script>
    <!-- dataTable -->
    <script src="js/jquery.dataTables.min.js"></script>
    <style type="text/css">
        .txt
        {
            margin-left: 10px;
            width: 150px;
            margin-right: 20px;
            margin-top: 5px;
        }
        .dialog_link
        {
            padding: 0.4em 1em 0.4em 20px;
            position: relative;
            text-decoration: none;
        }
        .dropdownlist
        {
            margin-left: 10px;
            width: 155px;
            height: 23px;
            margin-right: 20px;
            margin-top: 5px;
        }
        .span-ui-icon
        {
            left: 0.2em;
            margin: -8px 5px 0 0;
            position: absolute;
            top: 50%;
        }
    </style>
    <script type="text/javascript" language="javascript">
        $(function () {
            $('#txtTime').datepicker();
            //            $('#Fisrt').click(function () {
            //                $('#btnFirst').trigger("click");
            //            });
            //            $('#Previous').click(function () {
            //                $('#btnPrevious').trigger("click");
            //            });
            //            $('#Next').click(function () {
            //                $('#btnNext').trigger("click");
            //            });
            //            $('#Last').click(function () {
            //                $('#btnLast').trigger("click");
            //            });

            $('#divChecking').click(function () {
                $('#dialogPrompt').dialog("open");

            });

            $("#dialogPrompt").dialog({
                autoOpen: false, width: 530, modal: true,
                buttons: {
                    "确定": function () {
                        $('#btnChecking').trigger("click");
                    },
                    "取消": function () {
                        $(this).dialog("close");
                    }
                }
            });


        });

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="box">
        <h2>
            <a href="#" id="toggle-list">学生考勤信息列表</a>
        </h2>
        <div class="block" id="list">
            <asp:Repeater ID="Checkinginfo" runat="server">
                <HeaderTemplate>
                    <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
                        <thead>
                            <tr>
                                <th>
                                    学号
                                </th>
                                <th>
                                    学生
                                </th>
                                <th>
                                    课程
                                </th>
                                <th style="text-align: center">
                                    考勤
                                </th>
                            </tr>
                        </thead>
                </HeaderTemplate>
                <ItemTemplate>
                    <tbody>
                        <tr style="width: 100px" class="odd gradeA">
                            <td>
                                <asp:Label ID="Label1" runat="server" Text='<%#Eval("xhstudent_Id")%>'></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lblStudentName" runat="server" Text='<%#Eval("student_name")%>'></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lblTeachingLesson" runat="server" Text='<%#Eval("teaching_lesson")%>'></asp:Label>
                            </td>
                            <td style="text-align: center">
                                <asp:DropDownList ID="ddlScore" runat="server" class="dropdownlist">
                                    <asp:ListItem> </asp:ListItem>
                                    <asp:ListItem>正常</asp:ListItem>
                                    <asp:ListItem>迟到</asp:ListItem>
                                    <asp:ListItem>旷课</asp:ListItem>
                                    <asp:ListItem>事假</asp:ListItem>
                                    <asp:ListItem>病假</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td style="display: none">
                                <asp:Label ID="lblCheckingStuId" runat="server" Text='<%#Eval("student_id")%>'></asp:Label>
                            </td>
                            <td style="display: none">
                                <asp:Label ID="lblCheckingTeaId" runat="server" Text='<%#Eval("teaching_id")%>'></asp:Label>
                            </td>
                        </tr>
                    </tbody>
                </ItemTemplate>
                <FooterTemplate>
                    <tfoot>
                        <tr>
                            <th>
                                学号
                            </th>
                            <th>
                                学生
                            </th>
                            <th>
                                课程
                            </th>
                            <th style="text-align: center">
                                考勤
                            </th>
                        </tr>
                    </tfoot>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            <a href="#" id="divChecking" class=" dialog_link ui-state-default ui-corner-some floatRight">
                <span class=" span-ui-icon ui-icon ui-icon-arrowrefresh-1-e "></span>提交考勤</a>
        </div>
    </div>
    <div id="dialogPrompt" style="display: none" title="授课任务">
        <span id="spnPrompt" style="color: Red">确定提交? (未选择则为正常!)</span>
    </div>
    <asp:Button ID="btnChecking" UseSubmitBehavior="false" runat="server" Style="display: none"
        Text="提交考勤" OnClick="btnChecking_Click" />
    </form>
</body>
</html>
